<?php
namespace Home\Controller;
use Common\Controller\HomebaseController;
class ShopController extends  HomebaseController {
	public function index(){
		/*
		 * 取出淘宝客商品
		 */
		$TaobaoGoodsModel = new \Common\Model\TaobaoGoodsModel();
        $where = array('status'=>1);
        $order = " create_at DESC , id DESC";
        $setConfig = array(
            'next' => 'Next →',
            'prev' => '← Previous',
        );
        $data = $TaobaoGoodsModel->getComplexListData(5,$where,$order,$setConfig);
        $this->assign('data',$data);
		
		$this->assign('cocolait','礼物优选-Kyle博客');
		$this->display();
	}
	
}